/**
 * Copyright &copy; 2012-2016
 * <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights
 * reserved.
 */
package com.thinkgem.jeesite.modules.config.entity.pay;

import java.util.Date;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 支付配置管理Entity
 * 
 * @author JiangYongKang
 * @version 2016-12-22
 */
public class ConfigPayManage extends DataEntity<ConfigPayManage> {

    private static final long serialVersionUID = 1L;
    private Short type; // 支付类型
    private String image; // 图片 
    private Long accountId; // 用户ID
    private String configPayId; // 支付配置ID
    private Date createTime; // 创建时间
    private String merchantId;
    private String configPayName;
    
    public ConfigPayManage() {
        super();
    }

    public ConfigPayManage(String id) {
        super(id);
    }

    @Length(min = 1, max = 3, message = "支付类型长度必须介于 1 和 3 之间")
    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    @Length(min = 1, max = 255, message = "图片长度必须介于 1 和 255 之间")
    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @NotNull(message = "用户ID不能为空")
    public Long getAccountId() {
        return accountId;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }

    @Length(min = 1, max = 64, message = "支付配置ID长度必须介于 1 和 64 之间")
    public String getConfigPayId() {
        return configPayId;
    }

    public void setConfigPayId(String configPayId) {
        this.configPayId = configPayId;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "创建时间不能为空")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

	public String getMerchantId() {
		return merchantId;
	}

	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	public String getConfigPayName() {
		return configPayName;
	}

	public void setConfigPayName(String configPayName) {
		this.configPayName = configPayName;
	}

}